﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ResourceContext
{
    /// <summary>
    /// 物料定义相关物料类
    /// </summary>
    public class MaterialRelatedClass : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected MaterialRelatedClass() { }
        #endregion

        #region 01.创建物料定义相关物料类构造器
        /// <summary>
        /// 创建物料定义相关物料类构造器
        /// </summary>
        /// <param name="materialClassId">物料类Id</param>
        public MaterialRelatedClass(Guid materialClassId)
            : this()
        {
            this.MaterialClassId = materialClassId;
        }
        #endregion

        #endregion

        #region # 属性

        #region 物料类Id —— Guid MaterialClassId
        /// <summary>
        /// 物料类Id
        /// </summary>
        public Guid MaterialClassId { get; private set; }
        #endregion

        #region 导航属性 - 物料定义 —— Material Material
        /// <summary>
        /// 导航属性 - 物料定义
        /// </summary>
        public virtual Material Material { get; internal set; }
        #endregion

        #endregion
    }
}
